package com.java.basis.Interfaceandabstract;

/**
 * @author wangning
 * @create 2021-10-28 15:31
 */
interface Inter01 {
	int a = 10;

	void play();

	void eat();
}
abstract class A01 implements Inter01 {
	@Override
	public void play() {
		System.out.println("play game");
	}

	int a = 10;

}

class B01 extends A01 {
	@Override
	public void play() {
		System.out.println("");
	}

	class InnerClass implements Inter01 {

		@Override
		public void play() {

		}

		@Override
		public void eat() {

		}
	}

	@Override
	public void eat() {
		System.out.println("aa");

	}
}

public class InterfaceTest01 {
	int a = 10;
	public static final int b = 1;
	public static void main(String[] args) {

		Inter01 inner01 = new Inter01() {
			@Override
			public void play() {

			}

			@Override
			public void eat() {

			}
		};
	}
}
